import request from '@/utils/request'
// 获取用电单位下的配电室列表
export const geipeidiansapi = data => request.get(`pio-microservice-biz/pio/common/switchroom/list?orgNo=${data.orgNo}`)
// 获取配电室下的间隔列表
export const getshebeiapi = params => request.get('pio-microservice-biz/pio/common/bay-path/list', { params })
// 设备电量分析
export const gettablelistapi = params => request.get('pio-microservice-biz/pio/statement/epower/common/device-analysis/list', { params })
// 导出设备电量分析数据
export const exporttableapi = data => request.post('pio-microservice-biz/pio/statement/epower/common/device-analysis/excel', data, { responseType: 'arraybuffer' })
// 企业负荷电量分析-企业接口
// 单位电量负荷分析
export const getqiyelistapi = params => request.get('pio-microservice-biz/pio/statement/epower-load/common/org-analysis/list', { params })
// 导出单位电量负荷分析数据
export const exportdanwei=data=>request.post('pio-microservice-biz/pio/statement/epower-load/common/org-analysis/excel', data, { responseType: 'arraybuffer' })
// 企业月份负荷分析
export const getmonthlistapi = params => request.get('pio-microservice-biz/pio/statement/epower-load/common/month-analysis/list', { params })
// 导出企业月份负荷分析数据
export const exportmonthapi=data=>request.post('pio-microservice-biz/pio/statement/epower-load/common/month-analysis/excel', data, { responseType: 'arraybuffer' })
// 设备排名曲线
export const getdevicepaimingapi = params => request.get('pio-microservice-biz/pio/equip/load/rank/line', { params })
// 设备排名列表
export const getdevicelistapi=params=>request.get('pio-microservice-biz/pio/equip/load/rank/list',{params})